package org.hxyjs.dao;

import org.hxyjs.entity.TypeOfCompetitionDetails;
import org.hxyjs.page.PageInfo;

import java.util.List;

public interface TypeOfCompetitionDetailsDao {

    //查询全部
    public List<TypeOfCompetitionDetails> getAllTypeOfCompetitionDetailss() throws Exception;

    //按主键查询
    public TypeOfCompetitionDetails getTypeOfCompetitionDetailsByTocdno(String tocdno) throws Exception;

    //分页查询
    public List<TypeOfCompetitionDetails> getTypeOfCompetitionDetailsByPage(PageInfo pageInfo) throws Exception;

    //增删改的返回值都是整数
    //增加
    Integer addTypeOfCompetitionDetails(TypeOfCompetitionDetails typeOfCompetitionDetails) throws Exception;

    //删除
    Integer deleteTypeOfCompetitionDetailsByTocdno(String tocdno) throws Exception;

    //修改
    Integer updateTypeOfCompetitionDetailsByTocdno(TypeOfCompetitionDetails typeOfCompetitionDetails) throws Exception;


}
